﻿using FilmBlowingMachine.PLC;
using GalaSoft.MvvmLight.Command;
using System;
using System.Collections.Generic;
using System.Text;

namespace FilmBlowingMachine.ViewModel
{
    class SettingsViewModel
    {
        public SettingsViewModel()
        {
            AS200 = new DeltaAS200("192.168.1.5", 502, 120);
            ServoHomingCommand = new RelayCommand(ServoHomingCmd);
        }

        public DeltaAS200 AS200 { get; set; }


        #region Command

        public RelayCommand ServoHomingCommand { get; set; }

        private void ServoHomingCmd()
        {
            AS200.Homing = true;
        }

        #endregion

    }
}
